package com.caxxb.service.impl;

import com.caxxb.dao.LogDao;
import com.caxxb.dao.impl.LogDaoImpl;
import com.caxxb.entity.Log;
import com.caxxb.service.LogService;
import com.caxxb.util.PageData;

import java.time.LocalDateTime;

public class LogServiceImpl implements LogService {

    private LogDao logDao=new LogDaoImpl();

    @Override
    public boolean recordLog(int userid,String ip,  LocalDateTime time) {
        return logDao.recordLog( userid,ip, time);
    }

    @Override
    public PageData<Log> getNumByPage(String num, int pageNo, int pageSize){
        return logDao.getNumByPage(num, pageNo, pageSize);
    }
}
